﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SchoolManagement.AutoEvaluacion.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Login IED Ricaurte</title>
    <link href="../App_Themes/Styles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .logotipo
        {
            width: 469px;
        }
    </style>
</head>
<body class="color_login">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    &nbsp;<script type="text/javascript">
              Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(IniciaRequest);
              Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
              Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

              var _Instance = Sys.WebForms.PageRequestManager.getInstance();

              function IniciaRequest(sender, arg) {
                  // INICIALIZACION DEL REQUEST
                  if (_Instance.get_isInAsyncPostBack()) {
                      window.alert("Se esta ejecutando un proceso. Espere por favor");
                      arg.set_cancel(true);
                  }
              }

              function BeginRequestHandler(sender, args) {
                  $find("mpe").show();
              }

              function EndRequestHandler(sender, args) {
                  $find("mpe").hide();
              }           
    
    </script>

    <asp:HyperLink ID="lnkModal" runat="server"></asp:HyperLink>
    <table class="modalPopup" style="display: none" id="pnlPopup" runat="server" cellspacing="0"
        cellpadding="0" width="25%" align="center" border="0">
        <tbody>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    Cargando Datos...
                    <br />
                    <asp:Image ID="Image122" runat="server" ImageUrl="~/Forms/Images/cargador.gif"></asp:Image>
                </td>
            </tr>
        </tbody>
    </table>
    <ajaxToolkit:ModalPopupExtender ID="mpe" runat="server" BehaviorID="mpe" PopupControlID="pnlPopup"
        BackgroundCssClass="modalBackground" DropShadow="false" TargetControlID="lnkModal" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="modalPopup" id="pnlMsgBoxInfo" runat="server" style="display: none;">
                <tr>
                    <td valign="top">
                        <div class="modalPopupContent">
                            <asp:Image ID="ImgMsgBox" runat="server" />
                            <asp:Label ID="lblMessage" runat="server" SkinID="Bold"></asp:Label>
                            <asp:Button ID="btnMsgAceptar" runat="server" Text="" CausesValidation="False" />
                        </div>
                    </td>
                </tr>
            </table>
            <ajaxToolkit:ModalPopupExtender ID="mpe_MsgBox" runat="server" DropShadow="True"
                OkControlID="btnMsgAceptar" PopupControlID="pnlMsgBoxInfo" TargetControlID="lnkMsgBox"
                BackgroundCssClass="modalBackground">
            </ajaxToolkit:ModalPopupExtender>
            <asp:LinkButton ID="lnkMsgBox" runat="server" Enabled="False"></asp:LinkButton>
            <table border="0" class="modalPopup" id="pnlConfirmBox" runat="server" width="323"
                style="display: none;">
                <tr>
                    <td valign="top">
                        <div class="modalPopupLogin">
                            <asp:Image ID="Image2" runat="server" ImageUrl="~/Forms/Images/msgPregunta.jpg" />
                            <asp:Label ID="lblConfirmText" runat="server" SkinID="Bold"></asp:Label>
                        </div>
                        <div align="center">
                            <asp:Button ID="btnAceptarConfirmBox" runat="server" Text="Aceptar" CausesValidation="False"
                                OnClick="ButtonClickedHandler" />
                            <asp:Button ID="btnCancelConfirmBox" runat="server" Text="Cancelar" CausesValidation="False" />
                        </div>
                    </td>
                </tr>
            </table>
            <ajaxToolkit:ModalPopupExtender ID="mpe_ConfirmBox" runat="server" DropShadow="True"
                PopupControlID="pnlConfirmBox" CancelControlID="btnCancelConfirmBox" TargetControlID="lnkBtnConfirm"
                BackgroundCssClass="modalBackground">
            </ajaxToolkit:ModalPopupExtender>
            <asp:LinkButton ID="lnkBtnConfirm" runat="server" Enabled="False"></asp:LinkButton>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login100">
                <tr>
                    <td scope="col" class="top">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td scope="col" class="middleTable">
                        <div class="containerLogin" align="center">
                            <div class="top">
                                &nbsp;</div>
                            <div class="middle">
                                <div class="logotipo">
                                </div>
                                <div class="tituloApp login">
                                    <table border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="initTApp">
                                            </td>
                                            <td class="midTApp" style="text-align: center; width: 675px;" colspan="3">
                                                Bienvenidos a
                                                <label>
                                                    Educational Project School
                                                </label>
                                            </td>
                                            <%--<td class="endTApp" style="width: 14px">
                                            </td>--%>
                                            <%--<td style="text-align: center" width="180px">
                                            </td>--%>
                                        </tr>
                                    </table>
                                </div>
                                <div class="contenedorLogotipoApp">
                                    <br />
                                    <asp:Image ID="ImageLogo" runat="server" ImageUrl="~/Forms/Images/logoEP.gif" ToolTip="Proyecto Educativo para gestion de Notas y Boletines" />
                                </div>
                                <div class="formLogin">
                                    <div class="column_3">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblUserName" runat="server" Text="Usuario"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr align="center">
                                                <td>
                                                    <asp:TextBox ID="txtUserName" runat="server" Width="125px"></asp:TextBox>
                                                </td>
                </tr>
                <tr align="center">
                    <td>
                        <div class="validatorCallout">
                            <asp:RequiredFieldValidator ID="rfvtxtUserName" runat="server" ControlToValidate="txtUserName"
                                Display="None" ErrorMessage="Ingrese el usuario" SetFocusOnError="True" ForeColor=""></asp:RequiredFieldValidator>
                            <ajaxToolkit:ValidatorCalloutExtender Width="95px" CloseImageUrl="~/Forms/images/ico_close.gif"
                                WarningIconImageUrl="~/Forms/Images/ico_error.gif" ID="vcerfvtxtUserName" runat="server"
                                TargetControlID="rfvtxtUserName">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <asp:RegularExpressionValidator ID="revtxtUserName" runat="server" ControlToValidate="txtUserName"
                                Display="None" ErrorMessage="Los datos son incorrectos." SetFocusOnError="True"
                                ValidationExpression="^[a-zA-Z0-9\sáéíóúñÑÁÉÍÓÚ,.]+$" ForeColor=""></asp:RegularExpressionValidator>
                            <ajaxToolkit:ValidatorCalloutExtender Width="95px" CloseImageUrl="~/Forms/images/ico_close.gif"
                                WarningIconImageUrl="~/Forms/Images/ico_error.gif" ID="vcerevtxtUserName" runat="server"
                                TargetControlID="revtxtUserName">
                            </ajaxToolkit:ValidatorCalloutExtender>
                        </div>
                    </td>
                </tr>
            </table>
            </div>
            <%--                                    <div class="break">
                                    </div>--%>
            <div class="column_3">
                <table style="width: 100%;">
                    <tr>
                        <td>
                            <asp:Label ID="lblPassword" runat="server" Text="Contraseña"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="125px"></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="validatorCallout">
                                <asp:RequiredFieldValidator ID="rfvtxtPassword" runat="server" ControlToValidate="txtPassword"
                                    Display="None" ErrorMessage="Ingrese la contraseña" SetFocusOnError="True" ForeColor=""></asp:RequiredFieldValidator>
                                <ajaxToolkit:ValidatorCalloutExtender Width="95px" CloseImageUrl="~/Forms/images/ico_close.gif"
                                    WarningIconImageUrl="~/Forms/images/ico_error.gif" ID="vcerfvtxtPassword" runat="server"
                                    TargetControlID="rfvtxtPassword">
                                </ajaxToolkit:ValidatorCalloutExtender>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="LabelTipoUsuario" runat="server" Text="Tipo de Usuario"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="DropDownListTipoUsuario" runat="server" ToolTip="Seleccione el tipo de Usuario">
                                <asp:ListItem>Estudiante</asp:ListItem>
                                <asp:ListItem>Docente</asp:ListItem>
                                <asp:ListItem>Padre de Familia</asp:ListItem>
                                <asp:ListItem>Administrativo</asp:ListItem>
                                <asp:ListItem>Rectoria</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonbar">
                <asp:Button ID="btnIngresar" runat="server" Text="Ingresar" OnClick="btnIngresar_Click" />
            </div>
            </div> </div>
            <div class="bottom">
                &nbsp;</div>
            </div> </td> </tr>
            <tr>
                <td scope="col" class="bottom">
                    &nbsp;
                </td>
            </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
